import { IsNumber, IsOptional, IsString } from "class-validator";

/** 账号密码登录DTO */
export class SignInDto {
    @IsString()
    username!: string;

    @IsString()
    password!: string;

    @IsString()
    captchaId!: string;

    @IsString()
    captchaText!: string;

    @IsOptional()
    @IsNumber()
    rememberDays?: number;
}
